package com.rachel.studyapp.mvp;

import com.rachel.studyapp.entries.UserInfo;
import com.rachel.studyapp.json.funjson.TodayBean;
import com.rachel.studyapp.json.homejson.HomeRoot;
import com.rachel.studyapp.mvp.base.BaseView;

/**
 * Created by zhengshaorui on 2017/8/22.
 */

public interface ContractUtils {

    interface IHomeView extends BaseView{
        void getJsonData(HomeRoot root);
    }

    interface IHomePresent extends BaseView{
        void getJsonData(HomeRoot root);
    }


    interface IMineView extends BaseView{
        void loginSuccess(UserInfo info);
        void loginFailure(Object errorObj);
        void registerSuccess(UserInfo info);
        void registerFailure(Object errorObj);
        void showloading();
        void hideloading();

    }
    interface IMinePresent extends BaseView{
        //为了方便再主线程中调用，只能再这里也写重复的方法了
        void loginSuccess(UserInfo info);
        void loginFailure(Object errorObj);
        void registerSuccess(UserInfo info);
        void registerFailure(Object errorObj);
        void showloading();
        void hideloading();
    }


    interface IFunView extends BaseView{
        void getJsonDataSuccess(TodayBean rootbean);
    }

    interface IFunPresent extends BaseView{
        void getJsonDataSuccess(TodayBean rootbean);
    }
}
